﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Ninesky.Models
{
    public class CategoryGeneral
    {
        [Key]
        public int CategoryGeneralId { get; set; }

        [ForeignKey("Category")]
        [Required]
        public int CategoryId { get; set; }

        /// <summary>
        /// 内容类型
        /// </summary>
        [Required]
        public ContentType Type { get; set; }

        /// <summary>
        /// 列表页模板
        /// </summary>
        public string ListTemplate { get; set; }

        /// <summary>
        /// 内容页模板
        /// </summary>
        public string ContentTemplate { get; set; }




        public virtual Category Category { get; set; }
    }
}
